﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorld.RobotFights
{
    internal class Block
    {
        public int X { get; protected set; }
        public int Y { get; protected set; }

        private bool _hasBeenPrinted = false;

        public Block(int x,int y)
        {
            this.X = x;
            this.Y = y;
        }

        public void Print()
        {
            if (_hasBeenPrinted)
                return;

            Console.SetCursorPosition(this.X, this.Y);
            Console.Write("B");
            _hasBeenPrinted = true;
        }
    }
}
